import service from "../checkApi/request";
// 获取月考勤表
// export function sheet_list(payload = {}){
//     return service.get('/admin/sheet',{ params:payload })
// }
export function sheet_list(payload = {}){
    return service.get('/api/attendance',{params:payload})
}
// 获取详情数据
// export function sheet_info(payload = {}){
//     return service.get(`/admin/sheet/${payload}`)
// }
export function sheet_info(payload = {}){
    return service.get('/api/searchcheckbyjobnumber',{params:payload})
}
// 修改信息
// export function info_update(payload = {}){
//     return service.patch(`/admin/sheet/${payload.id}`,payload)
// }
export function info_update(payload = {}){
    return service.post('/api/checkinedit1',payload)
}
// 修改按钮状态
// export function tag_change(payload = {}){
//     return service.patch(`/admin/sheet/${payload.id}`,payload)
// }
export function tag_change(payload = {}){
    return service.post('/api/checkinedit2',payload)
}
// 查询（按名字）
export function name_search(payload = {}){
    return service.get('/api/searchattendance', {params:payload})
}
// export function name_search(payload = {}){
//     return service.get(`/admin/sheet?rolename_like=${payload}`)
// }
// 查询（按部门）
export function department_search(payload = {}){
    return service.get('/api/searchattendance1', {params:payload})
}
// export function department_search(payload = {}){
//     return service.get(`/admin/sheet?sector_like=${payload}`)
// }